home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.n
/
toplevel.n
< prev
next >
Wrap
Text File
|
1995-07-25
|
7KB
|
132 lines
ttttoooopppplllleeeevvvveeeellll((((nnnn)))) TTTTkkkk (((( )))) ttttoooopppplllleeeevvvveeeellll((((nnnn))))
_________________________________________________________________
NNNNAAAAMMMMEEEE
toplevel - Create and manipulate toplevel widgets
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ttttoooopppplllleeeevvvveeeellll _p_a_t_h_N_a_m_e ?----ssssccccrrrreeeeeeeennnn _s_c_r_e_e_n_N_a_m_e? ?----ccccllllaaaassssssss _c_l_a_s_s_N_a_m_e?
?_o_p_t_i_o_n_s?
SSSSTTTTAAAANNNNDDDDAAAARRRRDDDD OOOOPPPPTTTTIIIIOOOONNNNSSSS
bbbbaaaacccckkkkggggrrrroooouuuunnnndddd ggggeeeeoooommmmeeeettttrrrryyyy
bbbboooorrrrddddeeeerrrrWWWWiiiiddddtttthhhh rrrreeeelllliiiieeeeffff
See the ``options'' manual entry for details on the standard
options.
WWWWIIIIDDDDGGGGEEEETTTT----SSSSPPPPEEEECCCCIIIIFFFFIIIICCCC OOOOPPPPTTTTIIIIOOOONNNNSSSS
_________________________________________________________________
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The ttttoooopppplllleeeevvvveeeellll command creates a new toplevel widget (given by
the _p_a_t_h_N_a_m_e argument). Additional options, described
above, may be specified on the command line or in the option
database to configure aspects of the toplevel such as its
background color and relief. The ttttoooopppplllleeeevvvveeeellll command returns
the path name of the new window.
A toplevel is similar to a frame except that it is created
as a top-level window: its X parent is the root window of a
screen rather than the logical parent from its path name.
The primary purpose of a toplevel is to serve as a container
for dialog boxes and other collections of widgets. The only
features of a toplevel are its background color and an
optional 3-D border to make the toplevel appear raised or
sunken.
Two special command-line options may be provided to the
ttttoooopppplllleeeevvvveeeellll command: ----ccccllllaaaassssssss and ----ssssccccrrrreeeeeeeennnn. If ----ccccllllaaaassssssss is
specified, then the new widget's class will be set to
_c_l_a_s_s_N_a_m_e instead of TTTToooopppplllleeeevvvveeeellll. Changing the class of a
toplevel widget may be useful in order to use a special
class name in database options referring to this widget and
its children. The ----ssssccccrrrreeeeeeeennnn option may be used to place the
window on a different screen than the window's logical
parent. Any valid screen name may be used, even one
associated with a different display.
Note: ----ccccllllaaaassssssss and ----ssssccccrrrreeeeeeeennnn are handled differently than other
command-line options. They may not be specified using the
option database (these options must have been processed
before the new window has been created enough to use the
Page 1 (printed 7/23/95)
ttttoooopppplllleeeevvvveeeellll((((nnnn)))) TTTTkkkk (((( )))) ttttoooopppplllleeeevvvveeeellll((((nnnn))))
option database; in particular, the new class name will
affect the lookup of options in the database). In addition,
----ccccllllaaaassssssss and ----ssssccccrrrreeeeeeeennnn may not be queried or changed using the
ccccoooonnnnffffiiiigggg command described below. However, the wwwwiiiinnnnffffoooo ccccllllaaaassssssss
command may be used to query the class of a window, and
wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnn may be used to query its screen.
WWWWIIIIDDDDGGGGEEEETTTT CCCCOOOOMMMMMMMMAAAANNNNDDDD
The ttttoooopppplllleeeevvvveeeellll command creates a new Tcl command whose name is
the same as the path name of the toplevel's window. This
command may be used to invoke various operations on the
widget. It has the following general form:
_p_a_t_h_N_a_m_e _o_p_t_i_o_n ?_a_r_g _a_r_g ...?
_P_a_t_h_N_a_m_e is the name of the command, which is the same as
the toplevel widget's path name. _O_p_t_i_o_n and the _a_r_gs
determine the exact behavior of the command. The following
commands are possible for toplevel widgets:
_p_a_t_h_N_a_m_e ccccoooonnnnffffiiiigggguuuurrrreeee ?_o_p_t_i_o_n? ?_v_a_l_u_e _o_p_t_i_o_n _v_a_l_u_e ...?
Query or modify the configuration options of the
widget. If no _o_p_t_i_o_n is specified, returns a list
describing all of the available options for _p_a_t_h_N_a_m_e
(see TTTTkkkk____CCCCoooonnnnffffiiiigggguuuurrrreeeeIIIInnnnffffoooo for information on the format of
this list). If _o_p_t_i_o_n is specified with no _v_a_l_u_e, then
the command returns a list describing the one named
option (this list will be identical to the
corresponding sublist of the value returned if no
_o_p_t_i_o_n is specified). If one or more _o_p_t_i_o_n-_v_a_l_u_e
pairs are specified, then the command modifies the
given widget option(s) to have the given value(s); in
this case the command returns an empty string. _O_p_t_i_o_n
may have any of the values accepted by the ttttoooopppplllleeeevvvveeeellll
command.
BBBBIIIINNNNDDDDIIIINNNNGGGGSSSS
When a new toplevel is created, it has no default event
bindings: toplevels are not intended to be interactive.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
toplevel, widget
Page 2 (printed 7/23/95)